﻿<Window x:Class="MyTime.WPF.SummaryWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Units="clr-namespace:MyTime.WPF.Units"
        SizeToContent="WidthAndHeight"
        Title="SummaryWindow" Height="Auto" Width="Auto" ResizeMode="NoResize" Topmost="True" WindowStartupLocation="CenterScreen" WindowStyle="None" SnapsToDevicePixels="True" AllowsTransparency="True" Background="{x:Null}" Margin="0" Icon="time.ico" KeyDown="Window_KeyDown_1" >
    <Grid HorizontalAlignment="Center" VerticalAlignment="Top"  Name="mainGrid" Margin="0" Width="Auto">
        <Border HorizontalAlignment="Stretch" Margin="10" VerticalAlignment="Stretch" BorderThickness="0,5,0,0" BorderBrush="#FF4B95D8"  Panel.ZIndex="1">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFEFFFE" Offset="0"/>
                    <GradientStop Color="#FFDEE9F3" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border.Effect>
                <DropShadowEffect Color="#CC000000" Opacity="0.8" ShadowDepth="2" BlurRadius="15" Direction="300"/>
            </Border.Effect>
        </Border>
        <Grid Name="ContentGrid" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="30" Panel.ZIndex="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="20" Name="ToolBar" />
                <RowDefinition Height="70" Name="RowHeader" />
                <RowDefinition Height="Auto" Name="RowContent" />
            </Grid.RowDefinitions>
                <Image Name="CloseBtn" Grid.Row="0" Cursor="Hand" HorizontalAlignment="Right"  VerticalAlignment="Top" Source="Images\cancel.png" Stretch="Uniform" Width="24" Height="24" Opacity="0.5" MouseLeftButtonDown="CloseBtn_MouseLeftButtonDown"  />

            <DockPanel Grid.Row="1" Margin="0,0,0,0">
                <Label Name="lbl" Content="Summary" DockPanel.Dock="Left" FontFamily="Segoe WP Light" FontSize="46" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="0,-10,10,0"/>
                <Image Name="PrevBtn" Cursor="Hand" Source="Images\back.png" Stretch="Uniform" Width="24" Height="24" Opacity="0.5" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,15,0,0" MouseLeftButtonDown="lblPrev_MouseLeftButtonDown"  />
                <Image Name="NextBtn" Cursor="Hand" Source="Images\next.png" Stretch="Uniform" Width="24" Height="24" Opacity="0.5" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,15,0,0" MouseLeftButtonDown="lblNext_MouseLeftButtonDown"  />
            </DockPanel>
            <!--<ScrollViewer Height="Auto" Grid.Row="1" VerticalAlignment="Top" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" Width="Auto">-->
            <StackPanel  Grid.Row="2" Orientation="Vertical" Margin="0,10,0,0" Name="WeekItemList" Width="Auto" Height="Auto">
                <Units:WeekItem />
            </StackPanel>
            <!--</ScrollViewer>-->
        </Grid><!--/end contentGrid-->
    </Grid><!--/end mainGrid-->
</Window>
